﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Themcongty.aspx.cs" Inherits="Admin_Congty_Themcongty" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style3
        {
            width: 100%;
        }
        .style4
        {
            width: 120px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" ForeColor="#FF3300" 
            Text="Thêm Công Ty" Font-Bold="True" Font-Size="X-Large" 
            style="text-align: center"></asp:Label>
    <br />
    <br />
    <table class="style3">
        <tr>
            <td class="style4">
                Tên Công Ty:</td>
            <td>
    <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="175px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="TextBox1" ErrorMessage="RequiredFieldValidator" 
        ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Địa chỉ:&nbsp;&nbsp;&nbsp;</td>
            <td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
        ControlToValidate="TextBox2" ErrorMessage="RequiredFieldValidator" 
        ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Email:&nbsp;&nbsp;&nbsp;</td>
            <td>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
        ControlToValidate="TextBox3" ErrorMessage="RequiredFieldValidator" 
        ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
    <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="Email không hợp lệ" 
        Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Điện thoại:&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td>
    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
        ControlToValidate="TextBox4" ErrorMessage="RequiredFieldValidator" 
        ForeColor="Red" ValidationGroup="1">*</asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
        ControlToValidate="TextBox4" ErrorMessage="Bạn phải nhập số " 
        ValidationExpression="\d*" ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
        ControlToValidate="TextBox5" ErrorMessage="Bạn phải nhập số " 
        ValidationExpression="\d*" ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Linkweb:</td>
            <td>
    <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Hinh:&nbsp;&nbsp;&nbsp;</td>
            <td>
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Label" 
        Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Quận huyện:&nbsp;&nbsp;&nbsp;</td>
            <td>
<asp:DropDownList ID="DropDownList1" runat="server" 
        DataSourceID="LinqDataSource1" DataTextField="Ten_qh" DataValueField="Id_qh">
    </asp:DropDownList>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DLL.luuliDataContext" EntityTypeName="" TableName="quanhuyens">
    </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
    <br />
    <asp:Button ID="Button10" runat="server" onclick="Button10_Click" 
        Text="Thêm " ValidationGroup="1" />
&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button11" runat="server" Text="Xóa" />
&nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <br />
    &nbsp;
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />
    &nbsp;&nbsp;&nbsp;<br />
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>

